import Layout from '@/layout/index.vue'
export default [
  {
    path: '/manage-base-info',
    component: Layout,
    redirect: 'noredirect',
    name: 'ManageBaseInfo',
    meta: {
      title: '基础信息管理',
      icon: 'base'
    },
    children: [
      {
        path: 'warehouse',
        component: () =>
          import(
            /* webpackChunkName: "warehouse" */ '@/module-base/pages/warehouse/warehouse/index.vue'
          ),
        name: 'Warehouse',
        meta: {
          title: '仓库管理'
        }
      },
      {
        path: 'warehouse/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "warehouse" */ '@/module-base/pages/warehouse/warehouse-add/index.vue'
          ),
        name: 'WarehouseAdd',
        meta: {
          title: '新增仓库',
          activeMenu: '/manage-base-info/warehouse',
          hidden: true
        }
      },
      {
        path: 'area',
        component: () =>
          import(
            /* webpackChunkName: "area" */ '@/module-base/pages/warehouse/area/index.vue'
          ),
        name: 'Area',
        meta: {
          title: '库区管理'
        }
      },
      {
        path: 'area/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "area" */ '@/module-base/pages/warehouse/area-add/index.vue'
          ),
        name: 'AreaAdd',
        meta: {
          title: '新增库区',
          activeMenu: '/manage-base-info/area',
          hidden: true
        }
      },
      {
        path: 'location',
        component: () =>
          import(
            /* webpackChunkName: "location" */ '@/module-base/pages/warehouse/location/index.vue'
          ),
        name: 'Location',
        meta: {
          title: '库位管理'
        }
      },
      {
        path: 'location/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "location" */ '@/module-base/pages/warehouse/location-add/index.vue'
          ),
        name: 'LocationAdd',
        meta: {
          title: '新增库位',
          activeMenu: '/manage-base-info/location',
          hidden: true
        }
      },
      {
        path: 'location-view',
        component: () =>
          import(
            /* webpackChunkName: "location-view" */ '@/module-base/pages/location-view/index.vue'
          ),
        name: 'locationView',
        meta: {
          title: '库位视图'
        }
      },
      {
        path: 'goods',
        component: () =>
          import(
            /* webpackChunkName: "goods" */ '@/module-base/pages/goods/goods/index.vue'
          ),
        name: 'Goods',
        meta: {
          title: '货品管理'
        }
      },
      {
        path: 'goods/details/:id',
        component: () =>
          import(
            /* webpackChunkName: "goods" */ '@/module-base/pages/goods/goods-add/index.vue'
          ),
        name: 'GoodsAdd',
        meta: {
          title: '新增货品',
          activeMenu: '/manage-base-info/goods',
          hidden: true
        }
      },
      {
        path: 'goods-type',
        component: () =>
          import(
            /* webpackChunkName: "goods-type" */ '@/module-base/pages/goods/goods-type/index.vue'
          ),
        name: 'GoodsType',
        meta: {
          title: '货品类型管理'
        }
      }
    ]
  }
]
